package com.sf.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.sf.dao.GoodDao;
import com.sf.entity.Good;
import com.sf.service.GoodService;

@Service("goodService")
public class GoodServiceImpl implements GoodService {

	@Autowired private GoodDao goodDao;
	
	@Override
	public Good query(Integer id) {
		return goodDao.selectByPrimaryKey(id);
	}

}
